﻿using System;
using System.Windows.Forms;

namespace HYCodeBase.WinForm.WinFormRemindSuit
{
	internal class StringReflectPropertySeter : GeneralReflectPropertySeter<string>, IAttributeSeter
	{
		private StringReflectPropertySeter()
		{
		}

		internal static StringReflectPropertySeter GetStringReflectPropertySeter()
		{
			if (StringReflectPropertySeter.m_singleTag == null)
			{
				StringReflectPropertySeter.m_singleTag = new StringReflectPropertySeter();
			}
			return StringReflectPropertySeter.m_singleTag;
		}

		public bool TrySetOneAttribute(ref System.Windows.Forms.Control inputControl, AttributeInformationBean inputAttribute)
		{
			return base.TrySetOneAttributeGeneral(ref inputControl, inputAttribute, null);
		}

		protected override string GetValueOfString(string inputStr)
		{
			return inputStr;
		}

		private static StringReflectPropertySeter m_singleTag;
	}
}
